{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <title>Bootstrap 实例 - 条纹表格</title>
   <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
   <script src="{% static 'js/jquery.min.js' %}"></script>
   <script src="{% static 'js/bootstrap.min.js' %}"></script>
</head>
<body>
<table class="table table-striped">
   <caption>用户列表</caption>
   <thead>
      <tr>
         <th>用户名</th>
         <th>密码</th>
         <th>first name</th>
         <th>last name</th>
      </tr>
   </thead>
   <tbody>
      {% for user in user_list %}
      <tr>
         <td>{{ user.username }}</td>
         <td>{{ user.password }}</td>
         <td>{{ user.first_name }}</td>
         <td>{{ user.last_name }}</td>
      </tr>
      {% endfor %}
     
   </tbody>

</table>

<form method="post" action="/hello/">
    {% csrf_token %}
    <input type="text" name="key" value="">
    <input type="submit" value="提交">
</form>

    标签的使用：<br/>
    if 标签<br/>
    {% if athlete == '0' %}
    athlete : 0
    {% elif athlete == '1' %}
    athlete : 1
    {% else %}
    No athletes.
    {% endif %}
    <br/>
    for标签：<br/>
    <ul>
    {% for athlete in athlete_list reversed %}
        <li>{{ athlete}}</li>
    {% empty %}
        内容为空
    {% endfor %}
    </ul>

    {% verbatim %}
        {{ ver }}
    {% endverbatim %}
    <br/>
    {% filter force_escape|upper %}
    This text will be HTML-escaped, and will appear in all lowercase.
    {% endfilter %}
    <br/>
    {{ value | lower }}
    <br/>
    {{ value1 | add:2 }}
    <br/>
    {{ value2 | date:"Y年m月d日" }}
    <br/>
    {% include 'aaa/sub.html' with hello='hello Django!!!'%}
    {% include value3 %}
</body>
</html>